package com.supaur.demo.mybatis.enums;

/**
 * @author huangj
 * @date 2019/10/9
 */
public enum SexEnum {

    MAN,
    FEMAIL,
    UNKNOWN;

    public static SexEnum find(int value) {
        for (SexEnum sexEnum : SexEnum.values()) {
            if (sexEnum.ordinal() == value) {
                return sexEnum;
            }
        }
        return null;
    }

}
